<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <!-- 避免IE使用兼容模式 -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
    <meta name="renderer" content="webkit">
    <!-- TopJUI框架样式 -->
    <link type="text/css" href="../../topjui/css/topjui.core.min.css" rel="stylesheet">
    <link type="text/css" href="../../topjui/themes/default/topjui.blue.css" rel="stylesheet" id="dynamicTheme"/>
    <!-- FontAwesome字体图标 -->
    <link type="text/css" href="../../static/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet"/>
    <!-- layui框架样式 -->
    <link type="text/css" href="../../static/plugins/layui/css/layui.css" rel="stylesheet"/>
    <!-- jQuery相关引用 -->
    <script type="text/javascript" src="../../static/plugins/jquery/jquery.min.js"></script>
    <script type="text/javascript" src="../../static/plugins/jquery/jquery.cookie.js"></script>
    <!-- TopJUI框架配置 -->
    <script type="text/javascript" src="../../static/public/js/topjui.config.js"></script>
    <!-- TopJUI框架核心-->
    <script type="text/javascript" src="../../topjui/js/topjui.core.min.js"></script>
    <!-- TopJUI中文支持 -->
    <script type="text/javascript" src="../../topjui/js/locale/topjui.lang.zh_CN.js"></script>
    <!-- 上传组件 -->
    <link type="text/css" rel="stylesheet" href="../../static/plugins/webuploader/css/webuploader.css">
    <script type="text/javascript" src="../../static/plugins/webuploader/js/webuploader.min.js"></script>
    <!-- layui框架js -->
    <script type="text/javascript" src="../../static/plugins/layui/layui.js"></script>
</head>

<body>
<table data-toggle="topjui-datagrid"
       data-options="id:'productDg',
       url:'../../json/product/list.json'">
    <thead>
    <tr>
        <th data-options="field:'id',title:'ID',checkbox:true"></th>
        <th data-options="field:'name',title:'商品名称'"></th>
        <th data-options="field:'code',title:'商品编号'"></th>
        <th data-options="field:'spec',title:'规格型号'"></th>
        <th data-options="field:'danwei',title:'规格型号'"></th>
        <th data-options="field:'sale_price',title:'销售单价'"></th>
    </tr>
    </thead>
</table>

<!-- 用户 表格工具栏 -->
<div id="productDg-toolbar" class="topjui-toolbar"
     data-options="grid:{
           type:'datagrid',
           id:'productDg'
       }">
    <!--<a href="javascript:void(0)"
       data-toggle="topjui-uploader"
       data-options="iconCls:'fa fa-check-circle',
       btnCls:'topjui-btn-brown',
       parentGrid:{
           type:'datagrid',
           id:'productDg',
           unselectedMsg:'请先选中要上传附件的数据！'
       }">webUploader上传</a>-->
    <a href="javascript:void(0)"
       data-toggle="topjui-menubutton"
       data-options="method:'upload',
       extend:'#productDg-toolbar',
       iconCls:'fa fa-cloud-upload',
       btnCls:'topjui-btn-green',
       accept:'file',
       dialog:{
           title:'附件批量上传'
       },
       parentGrid:{type:'datagrid', id:'productDg'},
       uploadUrl:_ctx + '/json/response/upload.json?uuid={uuid}'">批量上传</a>
</div>
</body>
</html>